std::basic_string::empty

From Cppreference

Jump to: navigation, search
bool empty() const;

Checks if the string has no characters, i.e. whether ​begin() == end().

Contents

Parameters

(none)

Return value

true if the string is empty, false otherwise

Complexity

constant

See also

size
returns the number of characters
(public member function)
length
returns the length of the string
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages